//
//  INHtmlElementUtil.h
//  chanlin
//
//  Created by Ryan on 14-11-14.
//  Copyright (c) 2014年 chanlin. All rights reserved.
//

#import <Foundation/Foundation.h>
@class INHtmlElement;
@interface INHtmlElementUtil : NSObject

@property (nonatomic,strong)NSDateFormatter *fromatter;

SGR_SINGLETION(INHtmlElementUtil)

@property (nonatomic,strong)UIFont *textFont;
@property (nonatomic,strong)UIFont *textBlod;
@property (nonatomic,strong)UIFont *altFont;
@property (nonatomic,unsafe_unretained) float altLineSpace;
@property (nonatomic,unsafe_unretained) float textLineSpace;
@property (nonatomic,strong)NSString *fontDesc;
@property (nonatomic,unsafe_unretained) int level;

- (void)parseAttrStrWitnString:(NSString *)str
                     andLabels:(NSString *)labels
                andLastElement:(INHtmlElement *)element
                andSuperLabels:(NSString *)superlabels
                          attr:(NSDictionary *)attrs;
- (BOOL)isParagraphLabels:(NSString *)labelsName;
- (NSString *)timeFormateFrom:(NSTimeInterval )time;
- (void)buidFont;

@end
